/*
* vuex socket
* */

//当前激活的下拉组件标识 key
const fortenDataviewDownSetKey = 'fortenDataviewDownActive'
const utilWindow = {

  //设置当前激活的下拉组件标识
  fortenDataviewDownSet(viewKey) {
    window[fortenDataviewDownSetKey] = viewKey
  },

  //判断下拉组件是否激活
  fortenDataviewDownIsActive(viewKey) {
    if (!window[fortenDataviewDownSetKey]) {
      return false
    }
    return window[fortenDataviewDownSetKey] == viewKey
  },

  //清除当前激活的下拉组件标识
  fortenDataviewDownClear() {
    window[fortenDataviewDownSetKey] = null
  },

}

export default utilWindow
